import React from 'react';
const OrderRouters = [
  {
    path: '/order',
    name: 'order',
    meta: { title: '订单中心' },
    routes: [
      {
        path: '/order/workOrder',
        name: 'oms-workOrder',
        meta: { title: '工单类订单管理' },
        routes: [
          {
            path: '/order/workOrder/list',
            name: 'oms-workOrder-list',
            meta: { title: '工单类订单列表', keepAlive: true },
            component: React.lazy(
              () =>
                import(
                  '@/page/order/workOrder/List'
                )
            )
          },
          {
            path: '/order/workOrder/view/:id',
            name: 'oms-workOrder-view',
            meta: {
              title: '工单类订单详情',
              hidden: true
            },
            component: React.lazy(
              () =>
                import(
                  '@/page/order/workOrder/View'
                )
            )
          }
        ]
      }
    ]
  }
];

export default OrderRouters;
